package stud.mpgame.net.userobject;

import org.apache.mina.core.buffer.IoBuffer;

import stud.mpgame.network.Message;
import stud.mpgame.network.UserObject;

import stud.mpgame.network.util.MessageUtils;

/**
 * Created by IntelliJ IDEA.
 * User: Yarik
 */
public class MapInfoUserObject extends UserObject {

    public static final String mapURL = "http://localhost:8080/maps/map_ex1.json";
//    public static final String mapURL = "http://10.20.0.1/maps/map_ex1.json";

    public String getMapURL() {
        return mapURL;
    }

    public void writeExternal(IoBuffer buffer, Message owner) {
        buffer.put(MessageUtils.strToBytes(mapURL));
    }

}
